import request from '@/utils/request'

// 查询教师作品列表
export function listTeacomposition(query) {
  return request({
    url: '/teacomposition/teacomposition/list',
    method: 'get',
    params: query
  })
}

// 查询教师作品详细
export function getTeacomposition(id) {
  return request({
    url: '/teacomposition/teacomposition/' + id,
    method: 'get'
  })
}

// 新增教师作品
export function addTeacomposition(data) {
  return request({
    url: '/teacomposition/teacomposition',
    method: 'post',
    data: data
  })
}

// 修改教师作品
export function updateTeacomposition(data) {
  return request({
    url: '/teacomposition/teacomposition',
    method: 'put',
    data: data
  })
}

// 删除教师作品
export function delTeacomposition(id) {
  return request({
    url: '/teacomposition/teacomposition/' + id,
    method: 'delete'
  })
}
